home *** CD-ROM | disk | FTP | other *** search
- TRANSLAT and KEYWORD
-
- Copyright 1990
-
- by Gil Yoder
- P.O. Box 307
- Coalgate, OK 74538
-
- Permission is granted to copy and distribute (but not to sell)
- all the files included in this archive without modification.
- Distributors may charge a small handling fee to cover their
- expenses. Registration is not required, but a small donation
- sent to the above address will be appreciated.
-
- Other programs from this author can be found on various BBS's.
- The Coalgate BBS will usually have the latest versions of my
- programs, and will be the quickest means of support for them.
- Call the Coalgate BBS at 405 927-2541 (HST 14.4 supporting 9600,
- 4800, 2400, 1200, 300 bps, 8-N-1). Give it a call.
-
- INSTRUCTIONS:
-
- On this disk are two programs, TRANSLAT.EXE and KEYWORD.EXE, a
- batch file to provide help for TRANSLAT.EXE, and source code for
- the two programs for those wishing to modify. TRANSLAT.EXE is a
- program that will allow you to remap from one to five keys on
- your keyboard. The KEYWORD program is a utility that reports the
- values that DOS uses for the keystrokes it receives from the
- keyboard.
-
- To make one keystroke appear to be another keystroke you should
- first run KEYWORD and press the key to be translated, and the key
- you wish it to be translated to. KEYWORD will report the value
- for each key. When you are finished with KEYWORD, press ESC.
-
- Then using the values you obtained with KEYWORD run TRANSLAT with
- the following syntax:
-
- TRANSLAT oldkey newkey
-
- where oldkey is the value reported by keyword for the key to be
- changed and newkey is the value of the key to be returned when
- the old key is pressed. Up to five "oldkey newkey" combinations
- can be specified on the command line. Note that the values must
- be entered following strict rules:
-
- (1) Each key must be a 4 digit hex number, left padded with 0's
- if necessary.
- (2) There must be at least one pair of numbers.
- (3) There must be less than 6 pairs of numbers.
- (4) Uneven pairs are not allowed.
- (5) Each digit of each values must be one of the following
- characters: 0123456789ABCDE. Lowercase characters are not
- allowed.
-
- If TRANSLATE cannot be successfully installed, you will hear a
- beep, and TRANSLATE will return to DOS with an error code.
- For an odd number of parameters a code of 1 will be returned.
- For no parameters code 2 is returned. For too many parameters
- code 3 is returned. For improperly formed parameters code 4 is
- returned. TRANS.BAT uses these codes to direct its flow.
- Normally when an error occurs you should examine the command line
- for a violation of one or more of the preceeding rules.
-
- As an example of one installation suppose you have a program that
- uses the 5 key on the number pad when numlock is turned off.
- Everything appears to work fine at the computer, but when you
- access your computer with a dumb terminal you discover that your
- terminal will not send a value when you press the 5 key. From
- your terminal run the KEYWORD program and press the 5 key with
- numlock off. KEYWORD will report
-
- 4C00 = <Center>
-
- Next choose a key to replace the 5 key. For example we choose
- the asterisk on the number pad. Press the key and KEYWORD will
- report
-
- 372A = *
-
- Next press the escape key. KEYWORD will report the value of
- escape and return you to DOS.
-
- Armed with this information we are ready to run TRANSLAT. To
- make the asterisk work like the 5 key we run TRANSLAT with the
- following line:
-
- TRANSLAT 372A 4C00
-
- There are two different ways to have more keys redefined. You
- can run TRANSLAT several times, once for each key, or you can
- specifiy more key pairs on the command line. Because TRANSLAT
- installs itself each time you run it, the second method is
- preferred. You can send five key pairs to TRANSLAT.
-
- TRANSLAT installs itself as a TSR and remains in memory until the
- next time the system is booted, or until the system is powered
- down.
-
- ADDENDUM
-
-
-